<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/employeejsAll.jsp"></jsp:include>
<title>登陆</title>
</head>

<body class="login-layout">
<div class="logintop">    
    <span>欢迎后台管理界面平台</span>    
    <ul>
    <li><a href="#">返回首页</a></li>
    <li><a href="#">帮助</a></li>
    <li><a href="#">关于</a></li>
    </ul>    
    </div>
    <div class="loginbody">
<div class="login-container">
	<div class="center">
	<h1>
		<i class="icon-leaf green"></i>
		<span class="orange">金科软件</span>
		<span class="white">后台管理系统</span>
	</h1>
	<h4 class="white">Background Management System</h4>
</div>

<div class="space-6"></div>

<div class="position-relative">
<div id="login-box" class="login-box widget-box no-border visible">
	<div class="widget-body">
		<div class="widget-main">
			<h4 class="header blue lighter bigger">
				<i class="icon-coffee green"></i>
				管理员登陆
			</h4>

			<div class="login_icon"><img src="images/login.png" /></div>

<form id="employeeForm">
	<fieldset>
		<label class="block clearfix">
			<span class="block input-icon input-icon-right">
				<input type="text" class="form-control" placeholder="登录名"  name="employeeName">
				<i class="icon-user"></i>
			</span>
		</label>

		<label class="block clearfix">
			<span class="block input-icon input-icon-right">
				<input type="password" class="form-control" placeholder="密码" name="employeePwd">
				<i class="icon-lock"></i>
			</span>
		</label>

		<div class="space"></div>

		<div class="clearfix">
			<a href="javascript:login()" class="width-35 pull-right btn btn-sm btn-primary"><span
					class="glyphicon glyphicon-off"></span> 登录</a>
		</div>

		<div class="space-4"></div>
	</fieldset>
</form>

		<div class="social-or-login center">
			<span class="bigger-110">通知</span>
		</div>

		<div class="social-login center">
		本网站系统不再对IE8以下浏览器支持，请见谅。
		</div>
	</div><!-- /widget-main -->

<div class="toolbar clearfix">
</div>
</div><!-- /widget-body -->
</div><!-- /login-box -->
</div><!-- /position-relative -->
</div>
                  </div>
                  <div class="loginbm">版权所有  2016  <a href="">第一小组软件系统有限公司</a> </div><strong></strong>
</body>
</html>
<script>
	/*登录的id*/
function login() {
    $.ajax({
        url: "http://localhost:8071/login/Emplogin",
        type: "get",
        data: $("#employeeForm").serialize(),
        dataType: "text",
        success: function (data) {
            if(data==1){
                alert("密码错误")
			}else if(data==2){
                alert("用户不存在")
			}else if(data==0){
			    alert("登录成功")
				location.href="employeeindex.jsp"
			}
        }
    })
}
</script>